package com.beibojd.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Author: 洪耀荣
 * @Date: 2021-06-11 16:13:08
 */
@Table(name = "customer")
public class Customer {
    @Id
    @Column(name = "customerid")
    private Integer customerId;//客户id
    @Column(name = "customername")
    private String customerName;//客户名字
    @Column(name = "customertel")
    private String customerTel;//电话，也可以用于速查
    @Column(name = "customertel2")
    private String customerTel2;//备用电话
    @Column(name = "customerfirstname")
    private String customerFirstName;//首字母，用于速查
    @Column(name = "customeraddress")
    private String customerAddress;//地址
    @Column(name = "customertransport")
    private String customerTransport;//运输方式






    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerTel() {
        return customerTel;
    }

    public void setCustomerTel(String customerTel) {
        this.customerTel = customerTel;
    }

    public String getCustomerTel2() {
        return customerTel2;
    }

    public void setCustomerTel2(String customerTel2) {
        this.customerTel2 = customerTel2;
    }

    public String getCustomerFirstName() {
        return customerFirstName;
    }

    public void setCustomerFirstName(String customerFirstName) {
        this.customerFirstName = customerFirstName;
    }

    public String getCustomerAddress() {
        return customerAddress;
    }

    public void setCustomerAddress(String customerAddress) {
        this.customerAddress = customerAddress;
    }

    public String getCustomerTransport() {
        return customerTransport;
    }

    public void setCustomerTransport(String customerTransport) {
        this.customerTransport = customerTransport;
    }

    public Customer() {
    }

    public Customer(Integer customerId, String customerName, String customerTel, String customerTel2, String customerAddress, String customerTransport) {
        this.customerId = customerId;
        this.customerName = customerName;
        this.customerTel = customerTel;
        this.customerTel2 = customerTel2;
        this.customerAddress = customerAddress;
        this.customerTransport = customerTransport;
    }

    public Customer(Integer customerId, String customerName, String customerContacts, String customerTel, String customerTel2, String customerFirstName, String customerAddress, String customerTransport) {
        this.customerId = customerId;
        this.customerName = customerName;
        this.customerTel = customerTel;
        this.customerTel2 = customerTel2;
        this.customerFirstName = customerFirstName;
        this.customerAddress = customerAddress;
        this.customerTransport = customerTransport;
    }

    public Customer(String customerName, String customerTel, String customerTel2, String customerAddress, String customerTransport) {
        this.customerName = customerName;
        this.customerTel = customerTel;
        this.customerTel2 = customerTel2;
        this.customerAddress = customerAddress;
        this.customerTransport = customerTransport;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "customerId=" + customerId +
                ", customerName='" + customerName + '\'' +
                ", customerTel='" + customerTel + '\'' +
                ", customerTel2='" + customerTel2 + '\'' +
                ", customerFirstName='" + customerFirstName + '\'' +
                ", customerAddress='" + customerAddress + '\'' +
                ", customerTransport='" + customerTransport + '\'' +
                '}';
    }
}
